/*
 * @Author       : Harry
 * @Date         : 2021-05-06 15:15:38
 * @LastEditors  : Harry
 * @LastEditTime : 2021-05-17 12:13:00
 * @FilePath     : \cardpack\src\main.js
 * @Description  : Inpu
 */
import Vue from 'vue'
import App from './App.vue'
import './mock/index.js'
import router from './router'
import store from './store'
import axios from "axios";
import ElementUI from 'element-ui';

import 'element-ui/lib/theme-chalk/index.css';
import lottie from 'vue-lottie';
// 全局使用main文件
import echarts from 'echarts'

Vue.prototype.$echarts = echarts

//lottie动画
Vue.component('lottie', lottie)
// Vue.use(axios)
axios.defaults.baseURL = 'http://39.98.108.52/CardPack'
axios.interceptors.request.use(config => {
  config.headers.Authorization = window.sessionStorage.getItem('token')
  // 在最后必须 return config
  return config
})

Vue.use(ElementUI);
Vue.config.productionTip = false
// 使用echarts
// Vue.use(echarts);
// Vue.prototype.$echarts = echarts

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
